#pragma once

// up_Button_class.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// Cup_Button_class window

class Cup_Button_class : public CButton
{
// Construction
public:
	Cup_Button_class();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(Cup_Button_class)
	public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	//}}AFX_VIRTUAL

// Implementation
public:
	CWnd* mama;
	int H;
	int W;
	CString D;
	CString U;
	CString skin;


  HRGN hRgn;

	bool InitButton(CWnd* this_wnd,int Height,int Width, const CString & TitleDown, const CString & TitleUp);
	HRGN GetRgn(const CString & file);

	virtual ~Cup_Button_class();

	// Generated message map functions
protected:
	//{{AFX_MSG(Cup_Button_class)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
